package com.itheima.stock.mapper;

import com.itheima.stock.entity.StockMarketIndexInfo;
import com.itheima.stock.vo.OptionVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
* @author liwen
* @description 针对表【stock_market_index_info(股票大盘数据详情表)】的数据库操作Mapper
* @createDate 2024-10-31 20:43:56
* @Entity com.itheima.stock.entity.StockMarketIndexInfo
*/
public interface StockMarketIndexInfoMapper {

    List<StockMarketIndexInfo> selectByIdsAndTime(@Param("ids") List<String> ids,@Param("last") LocalDateTime last);

    List<OptionVO> selectTradeCount(@Param("tMinusOneOpen") LocalDateTime tMinusOneOpen,@Param("tClose") LocalDateTime tClose,@Param("ids") List<String> ids);

    void insertBatch(List<StockMarketIndexInfo> lists);
}




